<template>
    <div>
       <div>
         <myButton v-aa=2>填充的</myButton>    
       </div>
       <div>
         <myButton v-aa:[left]=1></myButton>    
       </div>
       <div>{{Objects.name}}</div>
        <el-button @click="onclick">点击切换</el-button>
    </div>
</template>

<script>
import myButton from "@/components/my-button.vue"
export default {
    name:'slots',
    components: {
        myButton
    },
    data(){
        return{
            left:"left",
            Objects:{
                name:"asdd"
            },
        }
    },
    methods: {
        onclick(){
            this.Objects.name=2222  
        }
    }

}
</script>

<style>

</style>